package edu.hawaii.duedates.tests;

import static org.junit.Assert.fail;

import org.junit.Test;

import edu.hawaii.duedates.DueDates;
import edu.hawaii.duedates.ProjectTimer;

/**
 * TestProjectTimer is a unit test for ProjectTimer that test the timer 
 * execution of a particular task.
 * 
 * @author Mari-Lee Flestado, John Ancheta, Daniel Arakaki
 *
 */
public class TestProjectTimer {
  
  /**
   * Testing for the negative wakeUpValue. 
   */
  @Test (expected = IllegalArgumentException.class)
  public void testWakeUpTimerWithNegativeWakeup() {
    ProjectTimer pTimer = new ProjectTimer();  
    pTimer.schedule(new DueDates(), -1);
    fail("Shouldn't get here.");
  }
    
}
